package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电动车充电记录对象 ev_charging
 * 
 * @author camelminger
 * @date 2025-11-01
 */
public class EvCharging extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充电记录ID */
    private Long chargeId;

    /** 电动车ID */
    @Excel(name = "电动车ID")
    private Long vehicleId;

    /** 充电桩编号 */
    @Excel(name = "充电桩编号")
    private Long stationId;

    /** 开始充电时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始充电时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束充电时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束充电时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 用电量(kWh) */
    @Excel(name = "用电量(kWh)")
    private BigDecimal powerUsed;

    /** 是否异常充电（0否 1是） */
    @Excel(name = "是否异常充电", readConverterExp = "0=否,1=是")
    private Integer abnormalFlag;

    /** 充电费用 */
    @Excel(name = "充电费用")
    private BigDecimal feeAmount;

    public void setChargeId(Long chargeId) 
    {
        this.chargeId = chargeId;
    }

    public Long getChargeId() 
    {
        return chargeId;
    }

    public void setVehicleId(Long vehicleId) 
    {
        this.vehicleId = vehicleId;
    }

    public Long getVehicleId() 
    {
        return vehicleId;
    }

    public void setStationId(Long stationId) 
    {
        this.stationId = stationId;
    }

    public Long getStationId() 
    {
        return stationId;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setPowerUsed(BigDecimal powerUsed) 
    {
        this.powerUsed = powerUsed;
    }

    public BigDecimal getPowerUsed() 
    {
        return powerUsed;
    }

    public void setAbnormalFlag(Integer abnormalFlag) 
    {
        this.abnormalFlag = abnormalFlag;
    }

    public Integer getAbnormalFlag() 
    {
        return abnormalFlag;
    }

    public void setFeeAmount(BigDecimal feeAmount) 
    {
        this.feeAmount = feeAmount;
    }

    public BigDecimal getFeeAmount() 
    {
        return feeAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chargeId", getChargeId())
            .append("vehicleId", getVehicleId())
            .append("stationId", getStationId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("powerUsed", getPowerUsed())
            .append("abnormalFlag", getAbnormalFlag())
            .append("feeAmount", getFeeAmount())
            .append("createTime", getCreateTime())
            .toString();
    }
}
